﻿using System;
using System.Collections.Generic;

namespace HML
{

    /// <summary>
    /// 滑块值更改事件参数
    /// </summary>
    public class MultidropSlideValueChangedEventArgs : EventArgs
    {
        private readonly MultidropSlideThumb triggerLump;
        /// <summary>
        /// 触发ValueChanged的滑块
        /// </summary>
        public MultidropSlideThumb TriggerLump
        {
            get { return this.triggerLump; }
        }

        private readonly MultidropSlideThumb currentLump;
        /// <summary>
        /// 正处于ValueChanged的滑块
        /// </summary>
        public MultidropSlideThumb CurrentLump
        {
            get { return this.currentLump; }
        }

        private readonly List<MultidropSlideThumb>influencedLumps;
        /// <summary>
        /// 受ValueChanged影响的的其他滑块集合
        /// </summary>
        public List<MultidropSlideThumb> InfluencedLumps
        {
            get { return this.influencedLumps; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="triggerLump">触发ValueChanged的滑块</param>
        /// <param name="currentLump">正处于ValueChanged的滑块</param>
        /// <param name="influencedLumps">受ValueChanged影响的的其他滑块集合</param>
        public MultidropSlideValueChangedEventArgs(MultidropSlideThumb triggerLump, MultidropSlideThumb currentLump, List<MultidropSlideThumb> influencedLumps)
        {
            this.triggerLump = triggerLump;
            this.currentLump = currentLump;
            this.influencedLumps = influencedLumps;
        }

    }
}
